import request from 'utils/request';

// 登录接口
export const login = ({ mobile, code }) => {
  return request({
    url: '/authorizations',
    method: 'post',
    data: {
      mobile,
      code,
    },
  });
};

// 获取用户信息
export const getUserInfo = () => {
  return request({
    url: '/user/profile',
  });
};
